Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load from url encoded json #500

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Algorush
Copy link
Collaborator

to load from url encoded streetmix json you need:

  1. Url encoded streetmix JSON. JSON can be obtained from the Editor, StreetmixAPIURL parameter in the streetmix-loader component of the #default-street element. String can be encoded through encodeURIComponent func in console or here for example: https://www.urlencoder.org/
  2. Paste encoded string after http://localhost:7001/#streetmix-json: or http://localhost:7001/#3dstreet-json: for 3dstreet data

Copy link

netlify bot commented Mar 15, 2024

Deploy Preview for 3dstreet-core-builds ready!

Name Link
🔨 Latest commit 19e73f3
🔍 Latest deploy log https://app.netlify.com/sites/3dstreet-core-builds/deploys/65f4e74a58b8b80008e34b70
😎 Deploy Preview https://deploy-preview-500--3dstreet-core-builds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -67,14 +67,58 @@ AFRAME.registerComponent('streetmix-loader', {
streetmixStreetURL: { type: 'string' },
streetmixAPIURL: { type: 'string' },
showBuildings: { default: true },
name: { default: '' }
name: { default: '' },
streetmixJSON: { type: 'string', default: '' }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be set directly on the street component instead of streetmix-loader component? there is already a property called JSON on the street component?

@kfarr
Copy link
Collaborator

kfarr commented Mar 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants